package com.auth.manage.user.infra.exception;

import com.auth.manage.base.exception.ErrorCode;

public enum UserErrorCode implements ErrorCode {
    USER_NOT_FOUND("USER_NOT_FOUND", "用户数据不存在"),
    TELEPHONE_EXIST("TELEPHONE_EXIST", "手机号已注册"),
    OPERATION_FAIL("OPERATION_FAIL", "操作失败"),
    USER_STATUS_IS_NOT_ACTIVE("USER_STATUS_IS_NOT_ACTIVE", "用户不是正常的状态"),
    USER_STATUS_IS_NOT_FROZEN_OR_USER_NOT_EXIST("USER_STATUS_IS_NOT_FROZEN_OR_USER_NOT_EXIST", "用户非冻结状态或用户不存在"),
    PWD_WRONG("PWD_WRONG", "密码错误"),

    ;
    private String code;
    private String msg;

    UserErrorCode(String code, String msg) {
        this.code = code;
        this.code = code;
    }
    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
